<template>
  <div id="app">
    <div id="nav">
      <router-link to="/home">首页</router-link> 
      <router-link to="/sponsors">赞助商</router-link>
      <router-link to="/news">新闻</router-link>
      <router-link to="/usercenter">我的</router-link>
    </div>
    <div id="content">
        <router-view/>
    </div>
  </div>
</template>

<style>
*{
    margin: 0px;
    padding: 0px;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 20px;
  width: 80%;
  display: flex;
  justify-content: space-between;
  border: 1px solid gray;
  font-size: 26px;
}
#content{
    padding: 20px;
    width: 80%;
    height: 360px;
    border: 1px solid gray;
    overflow: scrollY;
}
#nav a {
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
